/*
 * Config.h
 *
 *	Configuration file
 *
 *  Created on: 2011-10-22
 *      Author: mateusz
 */

#include <string>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <cstring>
#include <unistd.h>

#ifndef CONFIG_H_
#define CONFIG_H_

class Config {
public:
	Config();
	virtual ~Config();

	void setInputFile(char* inputFile);
	void setInputFile(std::string inputFile);
	std::string getInputFile();

	void setOutputFile(char* outputFile);
	void setOutputFile(std::string outputFile);
	std::string getOutputFile();

	void setMaxCustomers(int customers);
	int getMaxCustomers();

	void setRunTime(int seconds);
	double getRunTime();

	void build(int count, char* args[]);

private:
	int maxCustomers; // number of customers to visit
	std::string inputFile; // input file name
	std::string outputFile; // output file name
	double runTime;	// run time in seconds -2
};

#endif /* CONFIG_H_ */
